package com.yang;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public class E {

    public static void main(String[] args) {
        //开始得到返回的字符串
        C c = new C();
        String readText = c.read();
        System.out.println("获取到的字符串为:" + readText);
        String[] split = readText.split(",");
        List<Character> list = new CopyOnWriteArrayList<>();
        for (String str : split) {
            for (int index=0;index<str.length();index++){
                if (Character.isDigit(str.charAt(index))){
                    list.add(str.charAt(index));
                }
            }
        }
        String[] strings = new String[list.size()];
        for (int index = 0; index < list.size(); index++) {
            strings[index] = list.get(index).toString();
        }

        F.main(strings);

    }
}
